﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WaterRevenueMS.Componnent.Data;
using System.Data.Entity.Migrations;
using System.Data.Entity;
using WaterRevenueMS.Componnent.Entities.Authen;
using WaterRevenueMS.Componnent.Entities.BaseData;
using WaterRevenueMS.Componnent.Entities.BasicSet;

namespace WaterRevenueMS.Componnent.Data.Migrations
{
    internal sealed class Configuration:DbMigrationsConfiguration<EFDbContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = true;
            AutomaticMigrationDataLossAllowed = true;
        }

        protected override void Seed(EFDbContext context)
        {
            //公司
            //var companys = new List<Company>
            //{
            //    new Company{Id=1,Name="山东潍微科技", Address="昭德南路3789号",IsDeleted=false},
            //    new Company{Id=2,Name="山东潍微智能水控",Address="昭德南路3789号",ParentId=1,IsDeleted=false}
            //};
            //DbSet<Company> companySet = context.Set<Company>();
            //companySet.AddOrUpdate(t => new { t.Id }, companys.ToArray());
            //context.SaveChanges();
            //角色
            var roles = new List<Role>
            {
                new Role { Id = 1, Name = "系统管理员", Description = "开发人员、系统配置人员使用", OrderSort = 1, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Role { Id = 2, Name = "网站管理员", Description = "网站内容管理人员", OrderSort = 2, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now }
            };
            DbSet<Role> roleSet = context.Set<Role>();
            roleSet.AddOrUpdate(t => new { t.Id }, roles.ToArray());
            context.SaveChanges();

            //用户
            var users = new List<User>
            {
                new User { Id = 1, LoginName = "admin", LoginPwd = "8wdJLK8mokI=", FullName="admin", Email = "terrychen@qq.com", Phone ="123456", Enabled = true, IsDeleted = false, PwdErrorCount = 0, LoginCount = 0, RegisterTime = DateTime.Now, LastLoginTime = DateTime.Now, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now }
            };
            DbSet<User> userSet = context.Set<User>();
            userSet.AddOrUpdate(t => new { t.Id }, users.ToArray());
            context.SaveChanges();

            //银行代码
            var yin_HDMs = new List<BankCode>
            {
                new BankCode {Id =1, Yin_HMC = "中国工商银行", Yin_HJC = "工行", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 1 },
                new BankCode {Id =2,  Yin_HMC = "中国农业银行", Yin_HJC = "农行", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 2 },
                new BankCode {Id =3,  Yin_HMC = "中国建设银行", Yin_HJC = "建行", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 3 },
                new BankCode {Id =4,  Yin_HMC = "交通银行", Yin_HJC = "交行", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 4 },
                new BankCode {Id =5, Yin_HMC = "中国银行", Yin_HJC = "中行", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 5 },
                new BankCode {Id =99,  Yin_HMC = "中国人民银行", Yin_HJC = "人行", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 6 }

            };
            DbSet<BankCode> bankSets = context.Set<BankCode>();
            bankSets.AddOrUpdate(t => new { t.Id }, yin_HDMs.ToArray());
            context.SaveChanges();


            //仪表状态
            var yi_bzts = new List<MeterState>
            {
               
                new MeterState {Id =0, Yi_BZT = "未知", Zhuang_TDM = "0", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 0 },
                new MeterState {Id =1, Yi_BZT = "通讯正常", Zhuang_TDM = "1", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 1 },
                new MeterState {Id =2, Yi_BZT = "通讯失败", Zhuang_TDM = "2", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 2 },
                new MeterState {Id =3, Yi_BZT = "连接失败", Zhuang_TDM = "3", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 3 },
                
                new MeterState {Id =10, Yi_BZT = "未知", Zhuang_TDM = "0", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 4 },
                new MeterState {Id =11, Yi_BZT = "正常", Zhuang_TDM = "1", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 5 },
                new MeterState {Id =12, Yi_BZT = "短路", Zhuang_TDM = "2", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 6 },
                new MeterState {Id =13, Yi_BZT = "开路", Zhuang_TDM = "3", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 7 },
               
                new MeterState {Id =20, Yi_BZT = "未知", Zhuang_TDM = "0", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 8 },
                new MeterState {Id =21, Yi_BZT = "正常", Zhuang_TDM = "1", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 9 },
                new MeterState {Id =22, Yi_BZT = "报警", Zhuang_TDM = "2", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 10 },
                new MeterState {Id =23, Yi_BZT = "欠压", Zhuang_TDM = "3", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 11 },

            };
            DbSet<MeterState> MeterStateSets = context.Set<MeterState>();
            MeterStateSets.AddOrUpdate(t => new { t.Id }, yi_bzts.ToArray());
            context.SaveChanges();

            //账户状态
            var zhang_hzts = new List<AccountState>
            {
               
                new AccountState {Id =0, Zhang_HZT = "未知", Zhang_TDM = "0", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 0 },
                new AccountState {Id =1, Zhang_HZT = "正常", Zhang_TDM = "1", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 1 },
                new AccountState {Id =2, Zhang_HZT = "余额不多", Zhang_TDM = "2", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 2 },
                new AccountState {Id =3, Zhang_HZT = "欠费", Zhang_TDM = "3", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 3 },
                
            };
            DbSet<AccountState> AccountStateSets = context.Set<AccountState>();
            AccountStateSets.AddOrUpdate(t => new { t.Id }, zhang_hzts.ToArray());
            context.SaveChanges();

            //用量状态
            var yong_LZTs = new List<ConsumptionState>
            {
               
                new ConsumptionState {Id =0, Yong_LZT = "未知", Zhuang_TDM = "0", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 0 },
                new ConsumptionState {Id =1, Yong_LZT = "正常", Zhuang_TDM = "1", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 1 },
                new ConsumptionState {Id =2, Yong_LZT = "负用量", Zhuang_TDM = "2", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 2 },
                new ConsumptionState {Id =10, Yong_LZT = "小用量", Zhuang_TDM = "10", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 3 },
                new ConsumptionState {Id =20, Yong_LZT = "大用量", Zhuang_TDM = "20", CreateDT = DateTime.Now, ReviseDT = DateTime.Now, OrderNo = 4 },
            };
            DbSet<ConsumptionState> ConsumptionStateSets = context.Set<ConsumptionState>();
            ConsumptionStateSets.AddOrUpdate(t => new { t.Id }, yong_LZTs.ToArray());
            context.SaveChanges();

            //用户-角色
            var userRoles = new List<UserRole>
            {
                new UserRole { UserId = 1, RoleId = 1, IsDeleted = false },
            };
            DbSet<UserRole> userRoleSet = context.Set<UserRole>();
            userRoleSet.AddOrUpdate(t => new { t.UserId }, userRoles.ToArray());
            context.SaveChanges();

            //模块
            var modules = new List<Module>
            {
                new Module { Id = 1, ParentId = null, Name = "权限管理", LinkUrl = null, Area = null, Controller = null, Action = null, Icon = "icon-sitemap", Code = "20", OrderSort = 1, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 2, ParentId = 1, Name = "角色管理", LinkUrl = "Authen/Role/Index", Area = "Authen", Controller = "Role", Action = "Index", Icon = "", Code = "2001", OrderSort = 2, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 3, ParentId = 1, Name = "用户管理", LinkUrl = "Authen/User/Index", Area = "Authen", Controller = "User", Action = "Index", Icon = "", Code = "2002", OrderSort = 3, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 4, ParentId = 1, Name = "模块管理", LinkUrl = "Authen/Module/Index", Area = "Authen", Controller = "Module", Action = "Index", Icon = "", Code = "2003", OrderSort = 4, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 5, ParentId = 1, Name = "权限管理", LinkUrl = "Authen/Permission/Index", Area = "Authen", Controller = "Permission", Action = "Index", Icon = "", Code = "2004", OrderSort = 5, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 6, ParentId = null, Name = "查询统计", LinkUrl = null, Area = null, Controller = null, Action = null, Icon = "icon-cloud", Code = "30", OrderSort = 1, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 7, ParentId = 6, Name = "操作日志管理", LinkUrl = "SysConfig/OperateLog/Index", Area = "SysConfig", Controller = "OperateLog", Action = "Index", Icon = "", Code = "3001", OrderSort = 2, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 8, ParentId = 6, Name = "水费减免查询", LinkUrl = "WebUI/WaterChargeChange/Index", Area = null, Controller = "WaterChargeChange", Action = "Index", Icon = "", Code = "3003", OrderSort = 4, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
               // new Module { Id = 8, ParentId = 6, Name = "图标附录", LinkUrl = "SysConfig/Appendix/Icon", Area = "SysConfig", Controller = "Appendix", Action = "Icon", Icon = "", Code = "3002", OrderSort = 3, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                
                new Module { Id = 9, ParentId = null, Name = "个人资料", LinkUrl = "Common/Profile/Index", Area = "Common", Controller = "Profile", Action = "Index", Icon = "", Code = "9001", OrderSort = 1, Description = null, IsMenu = false, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 10, ParentId = null, Name = "修改密码", LinkUrl = "Common/Profile/ChangePwd", Area = "Common", Controller = "Profile", Action = "Index", Icon = "", Code = "9002", OrderSort = 1, Description = null, IsMenu = false, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
               
                new Module { Id = 11, ParentId = null, Name = "收费管理", LinkUrl = null, Area = null, Controller = null, Action = null, Icon = "icon-cloud", Code = "40", OrderSort = 1, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 12, ParentId = null, Name = "基本设置", LinkUrl = null, Area = null, Controller = null, Action = null, Icon = "icon-sitemap", Code = "50", OrderSort = 1, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 13, ParentId = null, Name = "用户管理", LinkUrl = null, Area = null, Controller = null, Action = null, Icon = "icon-sitemap", Code = "60", OrderSort = 1, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 14, ParentId = null, Name = "抄表管理", LinkUrl = null, Area = null, Controller = null, Action = null, Icon = "icon-sitemap", Code = "70", OrderSort = 1, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 15, ParentId = null, Name = "用水管理", LinkUrl = null, Area = null, Controller = null, Action = null, Icon = "icon-sitemap", Code = "80", OrderSort = 1, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                    

                new Module { Id = 16, ParentId = 12, Name = "银行代码设置", LinkUrl = "WebUI/BankCode/Index", Area = "WebUI", Controller = "BankCode", Action = "Index", Icon = "", Code = "5001", OrderSort = 1, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                
                new Module { Id = 17, ParentId = 12, Name = "银行设置", LinkUrl = "WebUI/BankSet/Index", Area = null, Controller = "BankSet", Action = "Index", Icon = "", Code = "5003", OrderSort = 6, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 18, ParentId = 12, Name = "单位设置", LinkUrl = "WebUI/CompanySet/Index", Area = null, Controller = "CompanySet", Action = "Index", Icon = "", Code = "5004", OrderSort = 8, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 19, ParentId = 12, Name = "集中器设置", LinkUrl = "WebUI/ConcentratorType/Index", Area = null, Controller = "ConcentratorType", Action = "Index", Icon = "", Code = "5005", OrderSort = 9, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 20, ParentId = 12, Name = "用户异常", LinkUrl = "WebUI/ConsumptionAbnormal/Index", Area = null, Controller = "ConsumptionAbnormal", Action = "Index", Icon = "", Code = "5010", OrderSort = 10, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 21, ParentId = 12, Name = "用量状态", LinkUrl = "WebUI/BankCode/Index", Area =null, Controller = "ConsumptionState", Action = "Index", Icon = "", Code = "5011", OrderSort = 11, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 22, ParentId = 12, Name = "手抄器类型", LinkUrl = "WebUI/HandSetType/Index", Area = null, Controller = "HandSetType", Action = "Index", Icon = "", Code = "5012", OrderSort = 12, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 23, ParentId = 12, Name = "收费方式设置", LinkUrl = "WebUI/WayOfCharge/Index", Area = null, Controller = "WayOfCharge", Action = "Index", Icon = "", Code = "5006", OrderSort = 20, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 24, ParentId = 12, Name = "用水类型", LinkUrl = "WebUI/KindOfWaterUse/Index", Area = null, Controller = "KindOfWaterUse", Action = "Index", Icon = "", Code = "5013", OrderSort = 12, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 25, ParentId = 12, Name = "水表厂商", LinkUrl = "WebUI/Manufacturer/Index", Area = null, Controller = "Manufacturer", Action = "Index", Icon = "", Code = "5014", OrderSort = 13, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 26, ParentId = 12, Name = "账户状态设置", LinkUrl = "WebUI/AccountState/Index", Area =null, Controller = "AccountState", Action = "Index", Icon = "", Code = "5002", OrderSort = 2, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 27, ParentId = 12, Name = "仪表类型", LinkUrl = "WebUI/MeterType/Index", Area = null, Controller = "MeterType", Action = "Index", Icon = "", Code = "5016", OrderSort = 15, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 28, ParentId = 12, Name = "中继类型", LinkUrl = "WebUI/RelayType/Index", Area = null, Controller = "RelayType", Action = "Index", Icon = "", Code = "5007", OrderSort = 16, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 29, ParentId = 12, Name = "编码规则设置", LinkUrl = "WebUI/RuleOfCode/Index", Area = null, Controller = "RuleOfCode", Action = "Index", Icon = "", Code = "5008", OrderSort = 17, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 30, ParentId = 12, Name = "系统参数设置", LinkUrl = "WebUI/SysParam/Index", Area = null, Controller = "SysParam", Action = "Index", Icon = "", Code = "5009", OrderSort = 18, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
               
                new Module { Id = 31, ParentId = 13, Name = "区域管理", LinkUrl = "WebUI/Area/Index", Area =null, Controller = "Area", Action = "Index", Icon = "", Code = "6001", OrderSort = 3, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 32, ParentId = 13, Name = "表册管理", LinkUrl = "WebUI/MeterBook/Index", Area = null, Controller = "MeterBook", Action = "Index", Icon = "", Code = "6002", OrderSort = 5, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 33, ParentId = 13, Name = "客户资料", LinkUrl = "WebUI/Customer/Index", Area = null, Controller = "Customer", Action = "Index", Icon = "", Code = "6003", OrderSort = 6, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 34, ParentId = 13, Name = "仪表信息", LinkUrl = "WebUI/MeterInfo/Index", Area = null, Controller = "MeterInfo", Action = "Index", Icon = "", Code = "6004", OrderSort = 8, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 35, ParentId = 13, Name = "抄表员", LinkUrl = null, Area = null, Controller = "MeterReader", Action = "Index", Icon = "", Code = "6005", OrderSort = 4, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 36, ParentId = 13, Name = "水表口径设置", LinkUrl = "WebUI/WaterCaliber/Index", Area = null, Controller = "WaterCaliber", Action = "Index", Icon = "", Code = "6006", OrderSort = 9, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },               
                new Module { Id = 37, ParentId = 13, Name = "附加项目", LinkUrl = "WebUI/AdditionItem/Icon", Area = null, Controller = "AdditionItem", Action = "Index", Icon = "", Code = "6007", OrderSort = 7, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "admin", ModifyTime = DateTime.Now },
                new Module { Id = 38, ParentId = 13, Name = "水表状态设置", LinkUrl = "WebUI/MeterSet/Index", Area = null, Controller = "MeterSet", Action = "Index", Icon = "", Code = "6008", OrderSort = 10, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 39, ParentId = 6, Name = "仪表设置查询", LinkUrl = "WebUI/MeterStQuerry/Index", Area = null, Controller = "MeterStQuerry", Action = "Index", Icon = "", Code = "6012", OrderSort = 11, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 40, ParentId = 13, Name = "仪表检修", LinkUrl = "WebUI/MeterRepair/Index", Area = null, Controller = "MeterRepair", Action = "Index", Icon = "", Code = "6010", OrderSort = 12, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 41, ParentId = 13, Name = "仪表检修查询", LinkUrl = "WebUI/RepairRecord/Index", Area = null, Controller = "RepairRecord", Action = "Index", Icon = "", Code = "6011", OrderSort = 2, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 42, ParentId = 13, Name = "仪表状态", LinkUrl = "WebUI/MeterState/Index", Area = null, Controller = "MeterState", Action = "Index", Icon = "", Code = "6009", OrderSort = 1, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                
                new Module { Id = 43, ParentId = 11, Name = "撤销缴费", LinkUrl = "WebUI/ChangeCharge/Index", Area = null, Controller = "ChangeCharge", Action = "Index", Icon = "", Code = "4030", OrderSort = 29, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 44, ParentId = 11, Name = "缴费", LinkUrl = "WebUI/ChargeRecord/Index", Area = null, Controller = "ChargeRecord", Action = "Index", Icon = "", Code = "4028", OrderSort = 27, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
               
                new Module { Id = 45, ParentId = 6, Name = "打印收费记录后收费", LinkUrl = "WebUI/MeterCharge/Index", Area = null, Controller = "MeterCharge", Action = "Index", Icon = "", Code = "3029", OrderSort = 28, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 46, ParentId = 6, Name = "收费明细查询", LinkUrl = "WebUI/ChargeSearchView/Index", Area = null, Controller = "ChargeSearchView", Action = "Index", Icon = "", Code = "4031", OrderSort = 30, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 47, ParentId = 15, Name = "审核抄表数据", LinkUrl = "WebUI/DataAuditing/Index", Area = null, Controller = "DataAuditing", Action = "Index", Icon = "", Code = "8001", OrderSort = 2, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 48, ParentId = 15, Name = "计量结算", LinkUrl = "WebUI/Settlement/Index", Area = null, Controller = "Settlement", Action = "Index", Icon = "", Code = "8002", OrderSort = 3, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 49, ParentId = 14, Name = "抄表模版", LinkUrl = "WebUI/TaskTemplet/Index", Area = null, Controller = "TaskTemplet", Action = "Index", Icon = "", Code = "7001", OrderSort = 2, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 50, ParentId = 14, Name = "抄表任务", LinkUrl = "WebUI/MeterTaskGenerate/Index", Area = null, Controller = "MeterTaskGenerate", Action = "Index", Icon = "", Code = "7002", OrderSort = 3, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 51, ParentId = 6, Name = "抄表记录", LinkUrl = "WebUI/MeterRecord/Index", Area = null, Controller = "MeterRecord", Action = "Index", Icon = "", Code = "3001", OrderSort = 2, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now },
                new Module { Id = 52, ParentId = 6, Name = "加减水量查询", LinkUrl = "WebUI/WaterUseChange/Index", Area = null, Controller = "WaterUseChange", Action = "Index", Icon = "", Code = "3002", OrderSort = 3, Description = null, IsMenu = true, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now }
                
            };
            DbSet<Module> moduleSet = context.Set<Module>();
            moduleSet.AddOrUpdate(t => new { t.Id }, modules.ToArray());
            context.SaveChanges();
            #region
            //权限
            var permissions = new List<Permission> 
            {
                new Permission { Id = 1, Code = "Index", Name = "浏览", OrderSort = 1, Icon = null, Description = null, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new Permission { Id = 2, Code = "Create", Name = "新增", OrderSort = 2, Icon = "icon-plus", Description = null, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new Permission { Id = 3, Code = "Edit", Name = "编辑", OrderSort = 3, Icon = "icon-pencil", Description = null, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new Permission { Id = 4, Code = "Delete", Name = "删除", OrderSort = 4, Icon = "icon-remove", Description = null, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new Permission { Id = 5, Code = "SetButton", Name = "设置按钮", OrderSort = 5, Icon = "icon-legal", Description = null, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new Permission { Id = 6, Code = "SetPermission", Name = "设置权限", OrderSort = 6, Icon = "icon-sitemap", Description = null, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new Permission { Id = 7, Code = "ChangePwd", Name = "修改密码", OrderSort = 7, Icon = "icon-key", Description = null, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new Permission { Id = 8, Code = "DeleteAll", Name = "删除全部", OrderSort = 8, Icon = "icon-trash", Description = null, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new Permission { Id = 9, Code = "ChangeSB", Name = "修改", OrderSort = 9, Icon = "icon-trash", Description = null, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new Permission { Id = 10, Code = "SelectMeterToModel", Name = "抄表下载", OrderSort = 10, Icon = "icon-trash", Description = null, Enabled = true, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  }
            };
            DbSet<Permission> permissionSet = context.Set<Permission>();
            permissionSet.AddOrUpdate(t => new { t.Id }, permissions.ToArray());
            context.SaveChanges();
            #endregion
            #region
            //模块-权限
            var modulePermissions = new List<ModulePermission> 
            {
                new ModulePermission { Id = 1, ModuleId = 2, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 2, ModuleId = 2, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 3, ModuleId = 2, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 4, ModuleId = 2, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 5, ModuleId = 2, PermissionId = 6, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 6, ModuleId = 3, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 7, ModuleId = 3, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 8, ModuleId = 3, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 9, ModuleId = 3, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 10, ModuleId = 3, PermissionId = 7, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 11, ModuleId = 4, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 12, ModuleId = 4, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 13, ModuleId = 4, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 14, ModuleId = 4, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 15, ModuleId = 4, PermissionId = 5, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 16, ModuleId = 5, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 17, ModuleId = 5, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 18, ModuleId = 5, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 19, ModuleId = 5, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 20, ModuleId = 7, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 21, ModuleId = 7, PermissionId = 8, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 22, ModuleId = 8, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 23, ModuleId = 9, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
          
                new ModulePermission { Id = 24, ModuleId = 11, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 25, ModuleId = 11, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 26, ModuleId = 11, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 27, ModuleId = 11, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 28, ModuleId = 11, PermissionId = 6, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 29, ModuleId = 12, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 30, ModuleId = 12, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 31, ModuleId = 12, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 32, ModuleId = 12, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
               
                new ModulePermission { Id = 33, ModuleId = 13, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 34, ModuleId = 13, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 35, ModuleId = 13, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 36, ModuleId = 13, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
             
                new ModulePermission { Id = 37, ModuleId = 14, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 38, ModuleId = 14, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 39, ModuleId = 14, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 40, ModuleId = 14, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
             
                new ModulePermission { Id = 41, ModuleId = 15, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 42, ModuleId = 15, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 43, ModuleId = 15, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 44, ModuleId = 15, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
              
                new ModulePermission { Id = 45, ModuleId = 16, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 46, ModuleId = 16, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 47, ModuleId = 16, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 48, ModuleId = 16, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
              
                new ModulePermission { Id = 49, ModuleId = 17, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 50, ModuleId = 17, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 51, ModuleId = 17, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 52, ModuleId = 17, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
              
                new ModulePermission { Id = 53, ModuleId = 18, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 54, ModuleId = 18, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 55, ModuleId = 18, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 56, ModuleId = 18, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
              
                new ModulePermission { Id = 57, ModuleId = 19, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 58, ModuleId = 19, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 59, ModuleId = 19, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 60, ModuleId = 19, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
              
                new ModulePermission { Id = 61, ModuleId = 20, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 62, ModuleId = 20, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 63, ModuleId = 20, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 64, ModuleId = 20, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
             
                new ModulePermission { Id = 65, ModuleId = 21, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 66, ModuleId = 21, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 67, ModuleId = 21, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 68, ModuleId = 21, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
             
                new ModulePermission { Id = 69, ModuleId = 22, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 70, ModuleId = 22, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 71, ModuleId = 22, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 72, ModuleId = 22, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
             
                new ModulePermission { Id = 73, ModuleId = 23, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 74, ModuleId = 23, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 75, ModuleId = 23, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 76, ModuleId = 23, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                //用水类型
                new ModulePermission { Id = 77, ModuleId = 24, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 78, ModuleId = 24, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 79, ModuleId = 24, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 80, ModuleId = 24, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                
                new ModulePermission { Id = 81, ModuleId = 25, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 82, ModuleId = 25, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 83, ModuleId = 25, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 84, ModuleId = 25, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 85, ModuleId = 26, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 86, ModuleId = 26, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 87, ModuleId = 26, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 88, ModuleId = 26, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 89, ModuleId = 27, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 90, ModuleId = 27, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 91, ModuleId = 27, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 92, ModuleId = 27, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 93, ModuleId = 28, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 94, ModuleId = 28, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 95, ModuleId = 28, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 96, ModuleId = 28, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 97, ModuleId = 29, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 98, ModuleId = 29, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 99, ModuleId = 29, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 100, ModuleId = 29, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 101, ModuleId = 30, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 102, ModuleId = 30, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 103, ModuleId = 30, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 104, ModuleId = 30, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 105, ModuleId = 31, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 106, ModuleId = 31, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 107, ModuleId = 31, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 108, ModuleId = 31, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 109, ModuleId = 32, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 110, ModuleId = 32, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 111, ModuleId = 32, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 112, ModuleId = 32, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 113, ModuleId = 33, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 114, ModuleId = 33, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 115, ModuleId = 33, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 116, ModuleId = 33, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 117, ModuleId = 34, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 118, ModuleId = 34, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 119, ModuleId = 34, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 120, ModuleId = 34, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
               
                new ModulePermission { Id = 121, ModuleId = 35, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 122, ModuleId = 35, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 123, ModuleId = 35, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 124, ModuleId = 35, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 125, ModuleId = 36, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 126, ModuleId = 36, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 127, ModuleId = 36, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 128, ModuleId = 36, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 129, ModuleId = 36, PermissionId = 9, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
        
                new ModulePermission { Id = 130, ModuleId = 37, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 131, ModuleId = 37, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 132, ModuleId = 37, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 133, ModuleId = 37, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 135, ModuleId = 38, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 136, ModuleId = 38, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 137, ModuleId = 38, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 138, ModuleId = 38, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 134, ModuleId = 38, PermissionId = 9, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
           
                new ModulePermission { Id = 139, ModuleId = 39, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 140, ModuleId = 39, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 141, ModuleId = 39, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 142, ModuleId = 39, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 143, ModuleId = 40, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 144, ModuleId = 40, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 145, ModuleId = 40, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 146, ModuleId = 40, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
           
                new ModulePermission { Id = 149, ModuleId = 41, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 147, ModuleId = 41, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 148, ModuleId = 41, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 150, ModuleId = 41, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                
                new ModulePermission { Id = 152, ModuleId = 42, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 153, ModuleId = 42, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 154, ModuleId = 42, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 151, ModuleId = 42, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 155, ModuleId = 47, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 156, ModuleId = 47, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 157, ModuleId = 47, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 158, ModuleId = 47, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                

                new ModulePermission { Id = 159, ModuleId = 48, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 160, ModuleId = 48, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 161, ModuleId = 48, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 162, ModuleId = 48, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                

                new ModulePermission { Id = 163, ModuleId = 49, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 164, ModuleId = 49, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 165, ModuleId = 49, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 166, ModuleId = 49, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                

                new ModulePermission { Id = 167, ModuleId = 50, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 168, ModuleId = 50, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 169, ModuleId = 50, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 170, ModuleId = 50, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                

                new ModulePermission { Id = 171, ModuleId = 51, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 172, ModuleId = 51, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 173, ModuleId = 51, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 174, ModuleId = 51, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                

                new ModulePermission { Id = 175, ModuleId = 52, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 176, ModuleId = 52, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 177, ModuleId = 52, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 178, ModuleId = 52, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
               
                new ModulePermission { Id = 179, ModuleId = 6, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 180, ModuleId = 10, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 181, ModuleId = 45, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
              
                new ModulePermission { Id = 182, ModuleId = 46, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 183, ModuleId = 46, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 184, ModuleId = 46, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 185, ModuleId = 46, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 186, ModuleId = 43, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 187, ModuleId = 43, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 188, ModuleId = 43, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 189, ModuleId = 43, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new ModulePermission { Id = 190, ModuleId = 44, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 191, ModuleId = 44, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 192, ModuleId = 44, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 193, ModuleId = 44, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
               
                new ModulePermission { Id = 194, ModuleId = 45, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 195, ModuleId = 45, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new ModulePermission { Id = 196, ModuleId = 45, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  }
              //  new ModulePermission { Id = 197, ModuleId = 45, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

        

           
            };

            DbSet<ModulePermission> modulePermissionsSet = context.Set<ModulePermission>();
            modulePermissionsSet.AddOrUpdate(t => new { t.Id }, modulePermissions.ToArray());
            context.SaveChanges();
# endregion
            //角色-模块-权限
            var roleModulePermissions = new List<RoleModulePermission> 
            {
                 new RoleModulePermission { Id = 1, RoleId = 1, ModuleId = 1, PermissionId = null, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                 new RoleModulePermission { Id = 2, RoleId = 1, ModuleId = 6, PermissionId = null, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                 new RoleModulePermission { Id = 3, RoleId = 1, ModuleId = 9, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                 new RoleModulePermission { Id = 4, RoleId = 1, ModuleId = 10, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                 new RoleModulePermission { Id = 5, RoleId = 1, ModuleId = 11, PermissionId = null, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                 new RoleModulePermission { Id = 6, RoleId = 1, ModuleId = 12, PermissionId = null, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                 new RoleModulePermission { Id = 7, RoleId = 1, ModuleId = 13, PermissionId = null, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                 new RoleModulePermission { Id = 8, RoleId = 1, ModuleId = 14, PermissionId = null, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                 new RoleModulePermission { Id = 9, RoleId = 1, ModuleId = 15, PermissionId = null, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

            
                new RoleModulePermission { Id = 11, RoleId = 1, ModuleId = 2, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 12, RoleId = 1, ModuleId = 2, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 13, RoleId = 1, ModuleId = 2, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 14, RoleId = 1, ModuleId = 2, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 15, RoleId = 1, ModuleId = 2, PermissionId = 6, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 16, RoleId = 1, ModuleId = 3, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 17, RoleId = 1, ModuleId = 3, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 18, RoleId = 1, ModuleId = 3, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 19, RoleId = 1, ModuleId = 3, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 20, RoleId = 1, ModuleId = 3, PermissionId = 7, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 21, RoleId = 1, ModuleId = 4, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 22, RoleId = 1, ModuleId = 4, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 23, RoleId = 1, ModuleId = 4, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 24, RoleId = 1, ModuleId = 4, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 25, RoleId = 1, ModuleId = 4, PermissionId = 5, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 26, RoleId = 1, ModuleId = 5, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 27, RoleId = 1, ModuleId = 5, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 28, RoleId = 1, ModuleId = 5, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 29, RoleId = 1, ModuleId = 5, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

               

                new RoleModulePermission { Id = 30, RoleId = 1, ModuleId = 7, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 31, RoleId = 1, ModuleId = 7, PermissionId = 8, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 32, RoleId = 1, ModuleId = 7, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 33, RoleId = 1, ModuleId = 7, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                
                new RoleModulePermission { Id = 34, RoleId = 1, ModuleId = 8, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 35, RoleId = 1, ModuleId = 8, PermissionId = 8, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 36, RoleId = 1, ModuleId = 8, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 37, RoleId = 1, ModuleId = 8, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

               
                new RoleModulePermission { Id = 38, RoleId = 1, ModuleId = 16, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 39, RoleId = 1, ModuleId = 16, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 40, RoleId = 1, ModuleId = 16, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 41, RoleId = 1, ModuleId = 16, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 42, RoleId = 1, ModuleId = 17, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 43, RoleId = 1, ModuleId = 17, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 44, RoleId = 1, ModuleId = 17, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 45, RoleId = 1, ModuleId = 17, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                
                new RoleModulePermission { Id = 46, RoleId = 1, ModuleId = 18, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 47, RoleId = 1, ModuleId = 18, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 48, RoleId = 1, ModuleId = 18, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 49, RoleId = 1, ModuleId = 18, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 50, RoleId = 1, ModuleId = 19, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 51, RoleId = 1, ModuleId = 19, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 52, RoleId = 1, ModuleId = 19, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 53, RoleId = 1, ModuleId = 19, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 54, RoleId = 1, ModuleId = 20, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 55, RoleId = 1, ModuleId = 20, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 56, RoleId = 1, ModuleId = 20, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 57, RoleId = 1, ModuleId = 20, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 58, RoleId = 1, ModuleId = 21, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 59, RoleId = 1, ModuleId = 21, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 60, RoleId = 1, ModuleId = 21, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 61, RoleId = 1, ModuleId = 21, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 62, RoleId = 1, ModuleId = 22, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 63, RoleId = 1, ModuleId = 22, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 64, RoleId = 1, ModuleId = 22, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 65, RoleId = 1, ModuleId = 22, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 66, RoleId = 1, ModuleId = 23, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 67, RoleId = 1, ModuleId = 23, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 68, RoleId = 1, ModuleId = 23, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 69, RoleId = 1, ModuleId = 23, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                //
                new RoleModulePermission { Id = 70, RoleId = 1, ModuleId = 24, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 71, RoleId = 1, ModuleId = 24, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 72, RoleId = 1, ModuleId = 24, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 73, RoleId = 1, ModuleId = 24, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 74, RoleId = 1, ModuleId = 25, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 75, RoleId = 1, ModuleId = 25, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 76, RoleId = 1, ModuleId = 25, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 77, RoleId = 1, ModuleId = 25, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 78, RoleId = 1, ModuleId = 26, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 79, RoleId = 1, ModuleId = 26, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 80, RoleId = 1, ModuleId = 26, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 81, RoleId = 1, ModuleId = 26, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 82, RoleId = 1, ModuleId = 27, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 83, RoleId = 1, ModuleId = 27, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 84, RoleId = 1, ModuleId = 27, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 85, RoleId = 1, ModuleId = 27, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 86, RoleId = 1, ModuleId = 28, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 87, RoleId = 1, ModuleId = 28, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 88, RoleId = 1, ModuleId = 28, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 89, RoleId = 1, ModuleId = 28, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 90, RoleId = 1, ModuleId = 29, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 91, RoleId = 1, ModuleId = 29, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 92, RoleId = 1, ModuleId = 29, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 93, RoleId = 1, ModuleId = 29, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 94, RoleId = 1, ModuleId = 30, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 95, RoleId = 1, ModuleId = 30, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 96, RoleId = 1, ModuleId = 30, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 97, RoleId = 1, ModuleId = 30, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 98, RoleId = 1, ModuleId = 31, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 99, RoleId = 1, ModuleId = 31, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 100, RoleId = 1, ModuleId = 31, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 101, RoleId = 1, ModuleId = 31, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 102, RoleId = 1, ModuleId = 32, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 103, RoleId = 1, ModuleId = 32, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 104, RoleId = 1, ModuleId = 32, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 105, RoleId = 1, ModuleId = 32, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 106, RoleId = 1, ModuleId = 33, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 107, RoleId = 1, ModuleId = 33, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 108, RoleId = 1, ModuleId = 33, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 109, RoleId = 1, ModuleId = 33, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                
               
                
                new RoleModulePermission { Id = 110, RoleId = 1, ModuleId = 34, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 111, RoleId = 1, ModuleId = 34, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 112, RoleId = 1, ModuleId = 34, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 113, RoleId = 1, ModuleId = 34, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
               
                new RoleModulePermission { Id = 114, RoleId = 1, ModuleId = 35, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 115, RoleId = 1, ModuleId = 35, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 116, RoleId = 1, ModuleId = 35, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 117, RoleId = 1, ModuleId = 35, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
              
                new RoleModulePermission { Id = 118, RoleId = 1, ModuleId = 36, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 119, RoleId = 1, ModuleId = 36, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 120, RoleId = 1, ModuleId = 36, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 121, RoleId = 1, ModuleId = 36, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 122, RoleId = 1, ModuleId = 36, PermissionId = 9, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                
                new RoleModulePermission { Id = 123, RoleId = 1, ModuleId = 37, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 124, RoleId = 1, ModuleId = 37, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 125, RoleId = 1, ModuleId = 37, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 126, RoleId = 1, ModuleId = 37, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
              
                new RoleModulePermission { Id = 127, RoleId = 1, ModuleId = 38, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 128, RoleId = 1, ModuleId = 38, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 129, RoleId = 1, ModuleId = 38, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 130, RoleId = 1, ModuleId = 38, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
               // new RoleModulePermission { Id = 131, RoleId = 1, ModuleId = 38, PermissionId = 9, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

        
                new RoleModulePermission { Id = 131, RoleId = 1, ModuleId = 39, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 132, RoleId = 1, ModuleId = 39, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 133, RoleId = 1, ModuleId = 39, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 134, RoleId = 1, ModuleId = 39, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },


           
                new RoleModulePermission { Id = 135, RoleId = 1, ModuleId = 40, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 136, RoleId = 1, ModuleId = 40, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 137, RoleId = 1, ModuleId = 40, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 138, RoleId = 1, ModuleId = 40, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 139, RoleId = 1, ModuleId = 41, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 140, RoleId = 1, ModuleId = 41, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 141, RoleId = 1, ModuleId = 41, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 142, RoleId = 1, ModuleId = 41, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 143, RoleId = 1, ModuleId = 42, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 144, RoleId = 1, ModuleId = 42, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 145, RoleId = 1, ModuleId = 42, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 146, RoleId = 1, ModuleId = 42, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
               
                new RoleModulePermission { Id = 147, RoleId = 1, ModuleId = 43, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 148, RoleId = 1, ModuleId = 43, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 149, RoleId = 1, ModuleId = 43, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 150, RoleId = 1, ModuleId = 43, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 151, RoleId = 1, ModuleId = 44, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 152, RoleId = 1, ModuleId = 44, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 153, RoleId = 1, ModuleId = 44, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 154, RoleId = 1, ModuleId = 44, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 155, RoleId = 1, ModuleId = 45, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 156, RoleId = 1, ModuleId = 45, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 157, RoleId = 1, ModuleId = 45, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 158, RoleId = 1, ModuleId = 45, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 159, RoleId = 1, ModuleId = 46, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 160, RoleId = 1, ModuleId = 46, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 161, RoleId = 1, ModuleId = 46, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 162, RoleId = 1, ModuleId = 46, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 163, RoleId = 1, ModuleId = 47, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 164, RoleId = 1, ModuleId = 47, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 165, RoleId = 1, ModuleId = 47, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 166, RoleId = 1, ModuleId = 47, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 167, RoleId = 1, ModuleId = 48, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 168, RoleId = 1, ModuleId = 48, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 169, RoleId = 1, ModuleId = 48, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 170, RoleId = 1, ModuleId = 48, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 171, RoleId = 1, ModuleId = 49, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 172, RoleId = 1, ModuleId = 49, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 173, RoleId = 1, ModuleId = 49, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 174, RoleId = 1, ModuleId = 49, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 175, RoleId = 1, ModuleId = 50, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 176, RoleId = 1, ModuleId = 50, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 177, RoleId = 1, ModuleId = 50, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 178, RoleId = 1, ModuleId = 50, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 179, RoleId = 1, ModuleId = 51, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 180, RoleId = 1, ModuleId = 51, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 181, RoleId = 1, ModuleId = 51, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 182, RoleId = 1, ModuleId = 51, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },

                new RoleModulePermission { Id = 183, RoleId = 1, ModuleId = 52, PermissionId = 1, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 184, RoleId = 1, ModuleId = 52, PermissionId = 2, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 185, RoleId = 1, ModuleId = 52, PermissionId = 3, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  },
                new RoleModulePermission { Id = 186, RoleId = 1, ModuleId = 52, PermissionId = 4, IsDeleted = false, CreateBy = "admin", CreateId = 1, CreateTime = DateTime.Now, ModifyId = 1, ModifyBy = "amdin", ModifyTime = DateTime.Now  }

            };

            DbSet<RoleModulePermission> roleModulePermissionSet = context.Set<RoleModulePermission>();
            roleModulePermissionSet.AddOrUpdate(t => new { t.Id }, roleModulePermissions.ToArray());
            context.SaveChanges();

            //编码规则
            var ruleOfcode = new List<RuleOfCode>
            {
                new RuleOfCode{Bian_MGZ="用户编号生成",Bian_MDX=1,CreateDT=DateTime.Now,ReviseDT=DateTime.Now,OrderNo=1,Yong_HBHCD=11,Qu_YDMCD=2,Biao_CDMCD=4,Zi_ZBHCD=5,Zi_ZBHZL=1,Shui_BHCD=1,Bian_MGZDY=0},
                new RuleOfCode{Bian_MGZ="水表编号生成",Bian_MDX=2,CreateDT=DateTime.Now,ReviseDT=DateTime.Now,OrderNo=1,Yong_HBHCD=11,Qu_YDMCD=2,Biao_CDMCD=4,Zi_ZBHCD=5,Zi_ZBHZL=1,Shui_BHCD=1,Bian_MGZDY=0}
            };
            DbSet<RuleOfCode> ruleOfcodeSet = context.Set<RuleOfCode>();
            ruleOfcodeSet.AddOrUpdate(t => new { t.Bian_MDX }, ruleOfcode.ToArray());
            context.SaveChanges();

            var sysParam = new List<SysParam>
            {
                new SysParam{Id=1,CreateDT=DateTime.Now,ReviseDT=DateTime.Now,OrderNo=0,Shi_SXS=2,Yong_LQZ=0,Yong_LXS=0,Dan_JXS=3,Fei_YQZ=2,Fei_YXS=2,Fu_YLBJ=0,Fu_YLGZ=0,Huan_BZQ=72,Huan_BTX=0,Qian_FHB=0,Qian_FBG=1}
            };
            DbSet<SysParam> sysParamSet = context.Set<SysParam>();
            sysParamSet.AddOrUpdate(t => new { t.Id }, sysParam.ToArray());
            context.SaveChanges();
        }
    }
}
